#pragma once


#include "RBTree.h"


namespace what
{
	template<class K, class V>
	class map
	{
	private:
		struct MapKeyOfT
		{
			const K& operator()(const std::pair<K, V> kv)
			{
				return kv.first;
			}
		};
	public:
		bool Insert(const std::pair<K, V>& kv)
		{
			return _t.Insert(kv);
		}

	private:
		RBTree<K, std::pair<K, V>, MapKeyOfT> _t;
	};
}